optipic\cdn\ImgUrlConverter D

Total Complexity 140
Dependencies 1
Dependents 1
Total lines 843
Lines of code 484
Logical lines of code 306
Comment lines 157
Methods 29
Properties 13

Methods 29

Method Rating Maintainability Complexity Lines of code
convertHtml()
C
33 24 93
callbackForPregReplace()
B
38 18 63
getUrlFromRelative()
A
48 14 31
loadConfig()
A
45 13 38
getBaseDirOfUrl()
S
54 6 22
getCurrentDomain()
S
57 6 16
callbackForPregReplaceSrcset()
S
52 5 22
urlHasPhpScript()
S
57 5 18
isEnabled()
S
58 5 15
getDefaultSettings()
S
56 4 19
resolveFilename()
S
58 4 16
log()
S
57 4 16
parse_url()
S
55 3 20
getResponseHeadersList()
S
60 3 13
textToArray()
S
61 3 13
isGz()
S
68 3 6
trimList()
S
63 3 10
__construct()
S
73 3 5
substr()
S
77 2 3
getBaseUrlFromHtml()
S
63 2 10
getDownloadSource()
S
66 2 8
strlen()
S
80 1 3
strtolower()
S
80 1 3
removeBomFromUtf()
S
71 1 5
file_get_contents()
S
80 1 3
htmlHasAmpMarkup()
S
78 1 3
htmlHasXmlMarkup()
S
78 1 3
getDocumentDoot()
S
80 1 3
getPreloadTags()
S
75 1 4